import * as proxy from '@/constants/proxy'
import request from '@/utils/request'

//全部机构单位
export function getOrgAllList() {
  return request({
    url: proxy.CHECC_API_CMS + '/org/selectTreeByLoginOrg',
    method: 'get',
  })
}

//获取详情
export function getDetail(id: any) {
  return request({
    url: '/checc-api/technologyStrength/kgptKjslTchieveDouble/getTotalList',
    method: 'post',
  })
}
// 列表数据
export function getList(params: any) {
  return request({
    url: '/checc-api/kgptKjslTchieveDouble/getTotalList',
    method: 'post',
    params,
  })
}
// 编辑
export function update(data: any) {
  return request({
    url: '/checc-api/kgptKjslTchieveDouble/update',
    method: 'post',
    data,
  })
}
// 新增
export function insert(data: any) {
  return request({
    url: '/checc-api/kgptKjslTchieveDouble/insert',
    method: 'post',
    data,
  })
}
// 删除
export function deleteAll(params: any) {
  return request({
    url: '/checc-api/kgptKjslTchieveDouble/delete',
    method: 'post',
    params,
  })
}
export function selectItemOpen(params: any) {
  return request({
    url: '/checc-api/ysgl/monthReport/select',
    method: 'post',
    params,
  })
}
export function monthReportUpdate(data: any) {
  return request({
    url: '/checc-api/kgptKjslTchieveDouble/update',
    method: 'post',
    data,
  })
}
export function getOrgInfo() {
  return request({
    url: '/checc-api/kgptKjslTchieveDouble/getTotalList',
    method: 'post',
  })
}
// 获取活动分类
export function getClassname() {
  return request({
    url: '/checc-api/kgptKjslTchieveDouble/classname',
    method: 'post',
  })
}

// 获取大赛类别
export function getCompetitionclass() {
  return request({
    url: '/checc-api/kgptKjslTchieveDouble/competitionclass',
    method: 'post',
  })
}

// 获取承担单位
export function getUndertakeunit() {
  return request({
    url: '/checc-api/kgptKjslTchieveDouble/undertakeunit',
    method: 'post',
  })
}

// 获取参与人员列表
export function getJoinPersons(data: any) {
  return request({
    url: '/checc-api/user/pageList',
    method: 'post',
    data,
  })
}

// 获取获奖等级列表
export function getAwardLevel() {
  return request({
    url: '/checc-api/kgptKjslTchieveDouble/getAwardLevel',
    method: 'post',
  })
}

// 数字化经费
export function databasedList(params) {
  return request({
    url: '/checc-api/ysgl/databased/list',
    method: 'post',
    params,
  })
}
export function getTotalList(params) {
  return request({
    url: '/checc-api/ysgl/databased/getTotalList',
    method: 'post',
    params,
  })
}
export function databasedinsert(data) {
  return request({
    url: '/checc-api/ysgl/databased/insert',
    method: 'post',
    data,
  })
}
export function databaseddelete(data) {
  return request({
    url: '/checc-api/ysgl/databased/delete',
    method: 'post',
    data,
  })
}
export function getAccountType() {
  return request({
    url: '/checc-api/ysgl/databased/getAccountType',
    method: 'post',
  })
}
export function databasedupdate(params) {
  return request({
    url: '/checc-api/ysgl/databased/update',
    method: 'post',
    params,
  })
}

export function getDictionaryList(data) {
  return request({
    url: proxy.CHECC_API_CMS + '/dictItem/codelist',
    method: 'post',
    data,
  })
}
/**
 * //根据字典代码列表查询全部字典
 * @param data
 * 平台基地建设
 * *研究领域	KJSL_RESEARCH_FIELD
 * *建设方式	KJSL_HPLAT_CONSTRUCTION_METHOD
 * *平台状态	KJSL_PLATFORM_STATUS
 * *成员角色	KJSL_MEMBER_ROLE
 * *文件类型	KJSL_FILE_TYPE
 * *平台级别	KJSL_INNOVATE_PLATFORM_LEVEL
 * *平台类别
 * *建设方式	KJSL_CONSTRUCTION_METHOD
 * *基地级别	KJSL_BASE_LEVEL
 * *平台级别	KJSL_PLATFORM_LEVEL
 * *专业级别	KJSL_PROFESSIONAL_LEVEL
 *
 * 创新人才队伍
 * *团队状态	KJSL_TEAM_STATUS
 * *人才级别	KJSL_TALENT_LEVEL
 * *人才类别	KJSL_TALENT_CATEGORY
 * *获得称号	KJSL_OBTAINING_TITLES
 *
 *
 * 科技成果
 * *简单法律事件	KJSL_SIMPLE_LEGAL_EVENTS
 * *专利类型	KJSL_PATENT_TYPE
 * *附件类型	KJSL_ATTACHMENT_TYPE1
 * *法律状态	KJSL_LEGAL_STATUS
 * *附件类型	KJSL_ATTACHMENT_TYPE
 * *学术著作级别	KJSL_ACADEMIC_WORK_LEVEL
 * *编著属性	KJSL_EDITORIAL_PROPERTIES
 * *企业排名	KJSL_ENTERPRISE_RANKING
 * *论文级别	KJSL_THESIS_LEVEL
 * *语言	KJSL_LANGUAGE
 * *奖励类型	KJSL_REWARD_TYPE
 *
 *
 * 项目状态：KJSL_PROJECT_STATUS
 * 项目来源：KJSL_PROJECT_SOURCE
 * 基地级别：KJSL_BASE_LEVEL
 * @returns
 */
